package com.gsezone.s12;

import java.util.LinkedList;
import java.util.Queue;

import com.gsezone.s12.model.User;

public class MyQueue {

	public static void main(String[] args) {
		
		Queue<User> users = new LinkedList<>();

		users.add(new User(1l, "Grzegorz"));
		users.add(new User(2l, "Marek"));
		users.add(new User(3l, "Karol"));
		
		System.out.println(users.size());
		
		while (users.peek() != null) {
			User user = users.poll();
			System.out.println(user);
		}
		
		System.out.println(users.size());
		
	}
}
